package com.zr.service.driverclient;

import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface UploadService {
    /**
     * 保存订单的回执单图片
     *
     * @param file
     * @param id
     * @param orderId
     * @return
     * @throws IOException
     */
    Object upload(MultipartFile file, Integer id, String orderId) throws IOException;

    /**
     * 保存异常的图片
     *
     * @param file
     * @return
     * @throws IOException
     */
    int saveAbnormal(MultipartFile file) throws IOException;

    /**
     * 获取订单图片
     *
     * @param name
     * @return
     */
    String getImg(String name);

    /**
     * 获取异常订单图片
     *
     * @param aid
     * @return
     */
    String getAbnImg(String aid);
}
